export default function computeTimeDuration(duration: number) {
  const seconds = duration % 60;
  const minutes = Math.floor(duration / 60) % 60;
  const hours = Math.floor(duration / 60 / 60) % 60;
  const padStart = (n: number) => String(n).padStart(2, "0");
  return `${padStart(hours)}:${padStart(minutes)}:${padStart(seconds)}`;
}
